#-------------------------------------------------
#
# Project created by QtCreator 2016-11-30T20:18:59
#
#-------------------------------------------------
!win32{
TARGET = pinyin
} else {
CONFIG(debug, debug|release) {
TARGET = pinyin_win_d
} else {
TARGET = pinyin_win
}
}

TEMPLATE = lib
CONFIG += static
CONFIG += c++11

CONFIG -= qt

DESTDIR = $${TOOLKITLIB_BUILD}/pinyin

SOURCES += \
    pinyinresource.cpp \
    chinesehelper.cpp \
    pinyinhelper.cpp \
    doublearraytrie.cpp \
    unicode.cpp

HEADERS += \
    pinyinformat.h \
    pinyinresource.h \
    chinesehelper.h \
    pinyinhelper.h \
    doublearraytrie.h \
    unicode.hpp
	
{#copy HEADERS to DESTDIR
src_dir = $$PWD\*.h
dst_dir = $${TOOLKITLIB_BUILD}\\pinyin\\

#和上面的语句之间需要留一个空行，否则会出错
src_dir ~= s,/,\\,g
dst_dir ~= s,/,\\,g
system(xcopy $$src_dir $$dst_dir /y /s)
}
